package com.sptpc.drink.dao;

import com.sptpc.drink.pojo.Category;
import com.sptpc.drink.pojo.Drink;

import java.util.List;

public interface CategoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Category record);


    int updateByPrimaryKey(Category record);

//    Category selectDrinkByCategoryName(String name);

    //通过名字查询Category
    List<Category> selectCategoryByName(String name);

    List<Category> selectAllCategory();

}